package com.assignwork.service;

import com.assignwork.dto.ThroughputForecastDTO;
import com.assignwork.entity.ThroughputForecast;
import com.assignwork.vo.StatisticsThroughputForecastVO;
import com.assignwork.vo.ThroughputForecastVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springblade.core.secure.BladeUser;

import java.util.List;
import java.util.Map;

public interface IThroughputForecastService extends IService<ThroughputForecast> {
    IPage<ThroughputForecastVO> pageThroughputForecast(BladeUser bladeUser, IPage<ThroughputForecastVO> page, ThroughputForecastDTO dto);

    List<StatisticsThroughputForecastVO> statisticsThroughputForecast(BladeUser bladeUser, IPage<StatisticsThroughputForecastVO> page, ThroughputForecastDTO dto);

    String statisticsAllThroughputForecast(BladeUser bladeUser, ThroughputForecastDTO dto);

    List<Map<String, String>> statisticsThroughputForecastCargo(BladeUser bladeUser, Long groupId, String year);

    boolean saveOrUpdateDTO(ThroughputForecastDTO dto);
}
